import { Injectable } from '@angular/core';
import { HOSTURL, PREFIX } from '../../../config';
import { RequestClientService } from '../../request-client.service';

@Injectable({
  providedIn: 'root'
})
export class InspectionRecordsService {

  constructor(
    private requestClientService: RequestClientService
  ) { }
  // 获取检查-分页数据集合
  public async QueryChecksPagedList(params) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/SecurityChecks/QueryChecksPagedList`, params);
    return res;
  }
  // 获取检查详情
  public async QueryCheckDetailById(params) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/SecurityChecks/QueryCheckDetailById?input=${params.input}`, null);
    return res;
  }
  //删除项目信息
  public async BatchRemoveChecks(params) {
    const res = await this.requestClientService.post(HOSTURL +  `/api/services/${PREFIX}/SecurityChecks/BatchRemoveChecks`, params);
    return res;
  }
}
